/**
 * @Title: SysPermissionServer.java 
 * @Description: TODO
 * @author <a href="mailto:psammead@126.com">Psammead</a>
 * @date 2011-7-15 下午10:29:57 
 * @version 1.0
 * Copyright 2011 by Psammead
 */
package com.psammead.dms.system.sercurity.service;

import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import com.psammead.dms.common.core.bo.Page;
import com.psammead.dms.system.sercurity.entity.SysPermission;

/**
 * 系统权限业务逻辑接口
 * @ClassName: SysPermissionServer
 * @Description: TODO
 * @author <a href="mailto:psammead@126.com">psammead</a>
 * @version 1.0
 * @date 2011-7-15
 */
public interface SysPermissionService {
	/**
	 * 新增权限
	 * @Title: addSysPermission
	 * @Description: TODO
	 * @param sysPermission 
	 * @return void
	 * @throws	
	 */
	public void addSysPermission(SysPermission sysPermission);
	
	/**
	 * 删除权限
	 * @Title: deleteSysPermission
	 * @Description: TODO
	 * @param sysPermissionId 
	 * @return void
	 * @throws	
	 */
	public void deleteSysPermission(long id);
	
	/**
	 * 批量的删除权限
	 * @Title: deleteSysPermissions
	 * @Description: TODO
	 * @param sysPermissionIds 
	 * @return void
	 * @throws	
	 */
	public void deleteSysPermissions(long[] ids);
	
	/**
	 * 修改权限
	 * @Title: updateSysPermission
	 * @Description: TODO
	 * @param sysPermission 
	 * @return void
	 * @throws	
	 */
	public void updateSysPermission(SysPermission sysPermission);
	
	/**
	 * 查询权限列表结果集
	 * @Title: querySysPermission
	 * @Description: TODO
	 * @param paramMap
	 * @param sortMap
	 * @return List<SysPermission>
	 * @throws
	 */
	public List<SysPermission> querySysPermission(Map<String,Object> paramMap,
				LinkedHashMap<String,String> sortMap);
	
	/**
	 * 查询权限分页结果集
	 * @Title: querySysPermission
	 * @Description: TODO
	 * @param paramMap
	 * @param sortMap
	 * @param pageNo
	 * @param pageSize
	 * @return Page<SysPermission>
	 * @throws
	 */
	public Page<SysPermission> querySysPermission(Map<String,Object> paramMap,
			LinkedHashMap<String,String> sortMap, int pageNo, int pageSize);

}
